package icu.groot.alan.hotel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import icu.groot.alan.hotel.entity.dao.OrderDo;

import java.time.LocalDateTime;
import java.util.List;

public interface OrderService  extends IService<OrderDo> {

    /**
     * 用户下单
     */
    public void purchase(String orderCode, Integer accCode);

    /**
     * 根据条件获取订单
     *
     * @return
     */
    List<OrderDo> listByTime(LocalDateTime checkinStartTime, LocalDateTime checkinEndTime);
}
